<template>
  <div></div>
</template>

<script lang="ts" setup>
import { useUserInfoStore } from '@/stores/modules/userInfo'
import { ref, reactive, onBeforeMount } from 'vue'
import { useRouter,useRoute } from 'vue-router'
const router = useRouter()
const route = useRoute()
onBeforeMount(() => {
  const userStore = useUserInfoStore()
  if (userStore.frontToken) {
    router.push(`/chat/loginShareMessage/${route.params.id}`)
  } else {
    router.push(`/unloginShareMessage/${route.params.id}`)
  }
})
</script>

<style scoped></style>
